import { createRouter,createWebHashHistory } from "vue-router"
import login from "@/view/myLogin.vue";
import home from "@/view/myHome.vue";
import myEnroll from "@/view/myEnroll.vue";
import myForget from "@/view/myForget.vue";
import userDetail from "@/view/userDetail.vue";
import postDetail from "@/view/postDetail.vue";

const router = createRouter({
    history:createWebHashHistory(),
    routes:[
        {
            path:"/",
            component:login
        },
        {
            path:"/home",
            component:home
        },
        {
            path:"/enroll",
            component:myEnroll
        },
        {
            path:"/forget",
            component:myForget
        },
        {
            path:"/user",
            component:userDetail
        },
        {
            path:"/post",
            component:postDetail
        }
    ]
});

export default router;
